package com.woniu.deal.order.controller;

import com.woniu.common.entity.Result;
import com.woniu.deal.order.service.DealServeraccountService;
import com.woniu.deal.order.service.DealUseraccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/useraccount")
public class UserAccountController {

    @Autowired
    DealUseraccountService dealUseraccountService;
    @PostMapping("/")
    public Result<Integer> createUserAccount(Integer id){
        Integer userAccount_id = dealUseraccountService.createUserAccount(id);
        return Result.ok(userAccount_id);
    }


    
}
